texthandle: Avoid double rendering of background/frame
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 17 Jun 2015 13:58:55 +0000 (15:58 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 17 Jun 2015 13:58:55 +0000 (15:58 +0200)
gtk_render_handle() already renders background/frame itself, avoid
doing this twice.

gtk/gtktexthandle.c

index 47de7efe5fbdbaeb2437903f5abbcae0c47339ef..c89cf6339cb5f815ca619543bd5f25a1bff5498d 100644 (file)
@@ -131,8 +131,6 @@ _gtk_text_handle_draw (GtkTextHandle         *handle,
     gtk_style_context_add_class (context,
                                  GTK_STYLE_CLASS_TOP);
 
-  gtk_render_background (context, cr, 0, 0, width, height);
-  gtk_render_frame (context, cr, 0, 0, width, height);
   gtk_render_handle (context, cr, 0, 0, width, height);
 
   gtk_style_context_restore (context);